/*
dialog_set_giveitem();
*/
dialog_enqueue(6,argument0,max(argument1,1));
if (string_length(argument3)>0){
dialog_set_text(argument3);
}
else{
if (argument1 <= 1){
if (string_starts_with_vowel(ds_grid_get(global.item,0,argument0))==false){
dialog_set_text("You've got a "+string(ds_grid_get(global.item,0,argument0))+string("!"));
}
else{
dialog_set_text("You've got an "+string(ds_grid_get(global.item,0,argument0))+string("!"));
}
}
else{
if (string_char_at(ds_grid_get(global.item,0,argument0),string_length(ds_grid_get(global.item,0,argument0))-1)=="s"){
}
dialog_set_text(string("You got ")+string(argument1)+string(" ")+string(ds_grid_get(global.item,0,argument0))+string("s!"));
}
}

